<!DOCTYPE html>
<html lang="zh-CN">
    
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>时间转换时间戳-</title>
    <meta name="keywords" content="时间转换时间戳" />
    <meta name="description" content="提供时间转换为时间戳功能。 " />
    <link href="//andy168.gitee.io/tools/timestamp/css/toolindex.css" rel="stylesheet" type="text/css">
    <script src="//andy168.gitee.io/tools/timestamp/js/jquery-1.11.0.min.js" type="text/javascript"></script>
</head>
    
<body id="nv_portal" class="pg_list pg_list_58 pg_list_76" onkeydown="if(event.keyCode==27) return false;">
    <div style="clear:both;">
    </div>
    <div id="wp" class="wp">
    
        
        <div class="wrap" id="page">
            <div class="r_long_c">
                <div class="toolist path">
                    <div id="password-area">
                        <div class="bg">
                            <h1>
                                Unix时间戳转换
                            </h1>
                        </div>
                        <div class="fatitle" style=" line-height:35px;">
                            现在的Unix时间戳(Unix timestamp)是
                            <span>
                                <span style="color:red" id="now_timestamp">
                                </span>
                            </span>
                            （测试结果请选中后用快捷键CTRl+C复制:）
                        </div>
                        <div class="fatitle">
                            Unix时间戳(Unix timestamp) → 北京时间:
                        </div>
                        <div class="fatitle">
                            <input type="text" class="input-form" id="unixtime" size="50" />
                            <input type="button" class="generate-button" value="转 换" id="toGMT">
                            <input type="text" class="input-form" id="result_GMT" value="" size="51"
                            placeholder="北京时间">
                        </div>
                        <div class="fatitle">
                            北京时间 → Unix时间戳(Unix timestamp)
                        </div>
                        <div class="fatitle">
                            <span class="spanbg">
                                <input type="text" class="input-form" id="year" value="" size="16" maxlength="4">
                                <span class="spanright">
                                </span>
                                年
                            </span>
                            <span class="spanbg">
                                <input type="text" class="input-form" id="month" value="" size="8" maxlength="2">
                                <span class="spanright">
                                </span>
                                月
                            </span>
                            <span class="spanbg">
                                <input type="text" class="input-form" id="day" value="" size="8" maxlength="2">
                                <span class="spanright">
                                </span>
                                日
                            </span>
                            <span class="spanbg">
                                <input type="text" class="input-form" id="hour" value="" size="8" maxlength="2">
                                <span class="spanright">
                                </span>
                                时
                            </span>
                            <span class="spanbg">
                                <input type="text" class="input-form" id="minute" value="" size="8" maxlength="2">
                                <span class="spanright">
                                </span>
                                分
                            </span>
                            <span class="spanbg last">
                                <input type="text" class="input-form" id="second" value="" size="8" maxlength="2">
                                <span class="spanright">
                                </span>
                                秒
                            </span>
                            <span class="change_span">
                                <input type="button" class="generate-button" value="转 换" id="toUNIX">
                            </span>
                            <span class="spanbg">
                                <input type="text" class="input-form" id="result_unix" value="" size="15">
                                <span class="spanright">
                                </span>
                            </span>
                        </div>
                    </div>
                    <div>
                        <div class="intro">
                            工具简介:什么是Unix时间戳(Unix timestamp)： Unix时间戳(Unix timestamp)，或称Unix时间(Unix
                            time)、POSIX时间(POSIX time)，是一种时间表示方式，定义为从格林威治时间1970年01月01日00时00分00秒起至现在的总秒数。Unix时间戳不仅被使用在Unix系统、类Unix系统中，也在许多其他操作系统中被广泛采用
                        </div>
                    </div>
                </div>
            </div>
        </div>
    
        <script src="//andy168.gitee.io/tools/timestamp/js/timestamp.js" type="text/javascript"></script>
    </div>
   
    <script type="text/javascript">
        function new_showTopLink() {
            var ft = $('ft');
            if (ft) {
                var scrolltop = $('scrolltop');
                var viewPortHeight = parseInt(document.documentElement.clientHeight);
                var scrollHeight = parseInt(document.body.getBoundingClientRect().top);
                var basew = parseInt(ft.clientWidth);
                var sw = scrolltop.clientWidth;
                if (basew < 1500) {
                    var left = parseInt(fetchOffset(ft)['left']);
                    left = left < sw ? left * 2 - sw: left;
                    scrolltop.style.left = (basew + left) + 'px';
                } else {
                    scrolltop.style.left = 'auto';
                    scrolltop.style.right = 0;
                }
                if (BROWSER.ie && BROWSER.ie < 7) {
                    scrolltop.style.top = viewPortHeight - scrollHeight - 150 + 'px';
                }
                if (scrollHeight < -100) {
                    scrolltop.style.visibility = 'visible';
                } else {
                    scrolltop.style.visibility = 'hidden';
                }
            }
        }
    </script>
</body>

</html>